package org.spring.aicloud.utils;

/**
 * @author yexiebao
 * @date 2025/5/27
 */
public class AppVariable {
    //讨论表点赞Topic
    public static final String DISSCUS_SURPORT_TOPIC = "DISSCUS_SURPORT_TOPIC";
    //分页大小
    public static final int PAGE_SIZE = 3;//todo:后期改为15

    //分布式锁超时时间
    public static final int LOCK_TIMEOUT = 3;

    //分布式锁键值（锁名）
    public static final String getModelLockKey(Long uid, int model,int type){
        return "MODEL_LOCK_KEY_" + uid + "_" + model + "_" + type;
    }

    //列表缓存key
    public static final String getListCacheKey(Long uid, int model,int type){
        return "LIST_CACHE_KEY_" + uid + "_" + model + "_" + type;
    }
    //canal将mysql binlog同步到Kafka中的topic
    public static final String CANAL_TOPIC = "aicloud-canal-to-kafka";


}